/**
 * Created by 1 on 2016/9/13.
 */
Ext.define('Monkey.store.icon.Icon', {
    extend: 'Monkey.store.BaseStore',
    alias: 'store.icon',

    model: 'Monkey.model.icon.Icon',
    pageSize: 100,
    proxy: {
        type: 'ajax',
        pageParam: 'page.pn',
        limitParam: 'page.size',
        url: Monkey.URL.SERVER_URL + '/m/icons.json',
        extraParams: {
            fields: 'id,name,icon,height'
        },
        reader: {
            type: 'json',
            totalProperty: 'data.totalAmount',
            rootProperty: 'data.elements'
        }
    }
});